package com.taotao.sso.controller;
/**
 * @Title: PageController
 * @ProjectName taotao
 * @Description: TODO
 * @author new
 * @date 2018/9/620:09
 */

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Auther: new
 * @Date: 2018/9/6 20:09
 * @Description:
 */
@Controller
@RequestMapping("/page")
public class PageController {

    @RequestMapping("/register")
    public String showRegister() {
        return "register";
    }

    @RequestMapping("/login")
    public String showLogin(String redirect, Model model) {
        model.addAttribute("redirect",redirect);
        return "login";
    }
}